package com.ma.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ProjectName: project
 * @Package: com.ma.entity
 * @ClassName: Classes
 * @Author: YHHHH
 * @Description: 班级
 * @Date: 2021/3/7 20:46
 * @Version: 1.0
 */
@Data
@Accessors(chain = true)
@TableName("class")
public class Classes implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer classId;    //班级号

    @TableField("name")
    private String className;   //班级名

    private Major major;    //对应专业

}
